<?php
$a = 'joe@example.org';
$b = 'bogus-at-example dot org';
$c = '(bogus@example.org)';
$sanitised_a = filter_var($a, FILTER_SANITIZE_EMAIL);

var_dump($sanitised_a);

$sanitized_b = filter_var($b, FILTER_SANITIZE_EMAIL);
var_dump($sanitized_b);

$sanitized_c = filter_var($c, FILTER_SANITIZE_EMAIL);
var_dump($sanitized_c);
